package app.jppfnetmorph;

import java.io.Serializable;

import static optimization.LinearAlgebra.*;

import neuron.NetworkStatisticsProxy;

public class JobResult implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -490358043958430953L;
	
	
	public double[] x;
	public int i;
	public NetworkStatisticsProxy stats;
	
	@Override
	public String toString() {
		return "#JOB-RESULT< x: " + vPrint(x) + ", i: " + i + ">";
	}
	
	public boolean isX(double[] x2)
	{
		return vNorm2(vSub(x, x2)) < 0.00000001;
	}
}
